package cn.chinaflame.pagodas.entity;

import java.math.BigDecimal;
import java.util.Objects;
import javax.persistence.*;
/**
 * @author created by lbq
 * @date 2018年1月4日 下午2:31:09
 **/
@Entity
@Table(name = "pa_member", schema = "pagoda", catalog = "")
public class PaMember {
    private String id;
    private String mobile;
    private String openid;
    private String loginId;
    private String loginPwd;
    private String email;
    private String idType;
    private String idNo;
    private String idSpeType;
    private String idSpeNo;
    private String name;
    private String sex;
    private String birthday;
    private Integer age;
    private String nickName;
    private String nickSex;
    private String nickLanguage;
    private String nickCity;
    private String nickProvince;
    private String nickCountry;
    private String nickHeadimgurl;
    private String provinceCode;
    private String provinceName;
    private String cityCode;
    private String cityName;
    private String areaCode;
    private String areaName;
    private String address;
    private String registFlg;
    private BigDecimal balance;
    private String createtime;
    private String updatetime;
    private String lastConsumeTime;

    @Id
    @Column(name = "id", nullable = false, length = 20)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "nick_sex", nullable = true, length = 5)
    public String getNickSex() {
        return nickSex;
    }

    public void setNickSex(String nickSex) {
        this.nickSex = nickSex;
    }

    @Basic
    @Column(name = "nick_language", nullable = true, length = 20)
    public String getNickLanguage() {
        return nickLanguage;
    }

    public void setNickLanguage(String nickLanguage) {
        this.nickLanguage = nickLanguage;
    }

    @Basic
    @Column(name = "nick_city", nullable = true, length = 50)
    public String getNickCity() {
        return nickCity;
    }

    public void setNickCity(String nickCity) {
        this.nickCity = nickCity;
    }

    @Basic
    @Column(name = "nick_province", nullable = true, length = 50)
    public String getNickProvince() {
        return nickProvince;
    }

    public void setNickProvince(String nickProvince) {
        this.nickProvince = nickProvince;
    }

    @Basic
    @Column(name = "nick_country", nullable = true, length = 50)
    public String getNickCountry() {
        return nickCountry;
    }

    public void setNickCountry(String nickCountry) {
        this.nickCountry = nickCountry;
    }

    @Basic
    @Column(name = "nick_headimgurl", nullable = true, length = 500)
    public String getNickHeadimgurl() {
        return nickHeadimgurl;
    }

    public void setNickHeadimgurl(String nickHeadimgurl) {
        this.nickHeadimgurl = nickHeadimgurl;
    }

    @Basic
    @Column(name = "nick_name", nullable = true, length = 50)
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Basic
    @Column(name = "mobile", nullable = true, length = 15)
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Basic
    @Column(name = "openid", nullable = true, length = 40)
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @Basic
    @Column(name = "login_id", nullable = true, length = 30)
    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    @Basic
    @Column(name = "login_pwd", nullable = true, length = 60)
    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    @Basic
    @Column(name = "email", nullable = true, length = 20)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Basic
    @Column(name = "id_type", nullable = true, length = 1)
    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    @Basic
    @Column(name = "id_no", nullable = true, length = 20)
    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    @Basic
    @Column(name = "id_spe_type", nullable = true, length = 1)
    public String getIdSpeType() {
        return idSpeType;
    }

    public void setIdSpeType(String idSpeType) {
        this.idSpeType = idSpeType;
    }

    @Basic
    @Column(name = "id_spe_no", nullable = true, length = 20)
    public String getIdSpeNo() {
        return idSpeNo;
    }

    public void setIdSpeNo(String idSpeNo) {
        this.idSpeNo = idSpeNo;
    }

    @Basic
    @Column(name = "name", nullable = true, length = 30)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "sex", nullable = true, length = 1)
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Basic
    @Column(name = "birthday", nullable = true, length = 10)
    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Basic
    @Column(name = "age", nullable = true)
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Basic
    @Column(name = "province_code", nullable = true, length = 10)
    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    @Basic
    @Column(name = "province_name", nullable = true, length = 20)
    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    @Basic
    @Column(name = "city_code", nullable = true, length = 10)
    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    @Basic
    @Column(name = "city_name", nullable = true, length = 20)
    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Basic
    @Column(name = "area_code", nullable = true, length = 10)
    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    @Basic
    @Column(name = "area_name", nullable = true, length = 20)
    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Basic
    @Column(name = "address", nullable = true, length = 50)
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "regist_flg", nullable = true, length = 1)
    public String getRegistFlg() {
        return registFlg;
    }

    public void setRegistFlg(String registFlg) {
        this.registFlg = registFlg;
    }

    @Basic
    @Column(name = "balance", nullable = true, precision = 2)
    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    @Basic
    @Column(name = "createtime", nullable = true)
    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "updatetime", nullable = true)
    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "last_consume_time", nullable = true)
    public String getLastConsumeTime() {
        return lastConsumeTime;
    }

    public void setLastConsumeTime(String lastConsumeTime) {
        this.lastConsumeTime = lastConsumeTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PaMember ywMember = (PaMember) o;
        return Objects.equals(id, ywMember.id) &&
                Objects.equals(mobile, ywMember.mobile) &&
                Objects.equals(loginId, ywMember.loginId) &&
                Objects.equals(loginPwd, ywMember.loginPwd) &&
                Objects.equals(email, ywMember.email) &&
                Objects.equals(idType, ywMember.idType) &&
                Objects.equals(idNo, ywMember.idNo) &&
                Objects.equals(idSpeType, ywMember.idSpeType) &&
                Objects.equals(idSpeNo, ywMember.idSpeNo) &&
                Objects.equals(name, ywMember.name) &&
                Objects.equals(sex, ywMember.sex) &&
                Objects.equals(birthday, ywMember.birthday) &&
                Objects.equals(age, ywMember.age) &&
                Objects.equals(provinceCode, ywMember.provinceCode) &&
                Objects.equals(provinceName, ywMember.provinceName) &&
                Objects.equals(cityCode, ywMember.cityCode) &&
                Objects.equals(cityName, ywMember.cityName) &&
                Objects.equals(areaCode, ywMember.areaCode) &&
                Objects.equals(areaName, ywMember.areaName) &&
                Objects.equals(address, ywMember.address) &&
                Objects.equals(registFlg, ywMember.registFlg) &&
                Objects.equals(balance, ywMember.balance) &&
                Objects.equals(createtime, ywMember.createtime) &&
                Objects.equals(updatetime, ywMember.updatetime) &&
                Objects.equals(lastConsumeTime, ywMember.lastConsumeTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, mobile, loginId, loginPwd, email, idType, idNo, idSpeType, idSpeNo, name, sex, birthday, age, provinceCode, provinceName, cityCode, cityName, areaCode, areaName, address, registFlg, balance, createtime, updatetime, lastConsumeTime);
    }
}
